package com.tianyuan.test2;

/**
 * @date 2025/10/17 9:47
 *二叉树节点类定义
 */
public class TreeNode {
    int val = 0;//val: 节点存储的值
    TreeNode left = null;//left: 左子节点引用
    TreeNode right = null;//right: 右子节点引用

    public TreeNode(int val) {
        this.val = val;
    }
}
